package com.tsd.jxc.stock.entity;

import com.alibaba.fastjson.JSON;
import com.tsd.core.utils.DoubleUtil;
import com.tsd.core.utils.HlpUtils;
import com.tsd.core.utils.ListUtil;
import com.tsd.jxc.vo.PrintVo;
import io.swagger.annotations.ApiModel;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * 入库单商品清单扩展
 *
 * @author Hillpool
 * @date 2022/07/29 15:06:33
 */
@ApiModel(description = "入库单商品清单扩展")
public class JxcStockInbillItemExt extends JxcStockInbillItem implements Serializable {

    private List<String> bill_list;

    private List<String> sid_list;

    private String bill_code;

    private String goods_code;

    private String goods_name;

    private String goods_model;

    private String goods_spec;

    private String warehouse_code;

    private String warehouse_name;

    private Integer index;

    public List<String> getBill_list() {
        return bill_list;
    }

    public void setBill_list(List<String> bill_list) {
        this.bill_list = bill_list;
    }

    public List<String> getSid_list() {
        return sid_list;
    }

    public void setSid_list(List<String> sid_list) {
        this.sid_list = sid_list;
    }

    public String getBill_code() {
        return bill_code;
    }

    public void setBill_code(String bill_code) {
        this.bill_code = bill_code;
    }

    public String getGoods_code() {
        return goods_code;
    }

    public void setGoods_code(String goods_code) {
        this.goods_code = goods_code;
    }

    public String getGoods_name() {
        return goods_name;
    }

    public void setGoods_name(String goods_name) {
        this.goods_name = goods_name;
    }

    public String getGoods_model() {
        return goods_model;
    }

    public void setGoods_model(String goods_model) {
        this.goods_model = goods_model;
    }

    public String getGoods_spec() {
        return goods_spec;
    }

    public void setGoods_spec(String goods_spec) {
        this.goods_spec = goods_spec;
    }

    public String getWarehouse_code() {
        return warehouse_code;
    }

    public void setWarehouse_code(String warehouse_code) {
        this.warehouse_code = warehouse_code;
    }

    public String getWarehouse_name() {
        return warehouse_name;
    }

    public void setWarehouse_name(String warehouse_name) {
        this.warehouse_name = warehouse_name;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public String getSpec_name() {
        return null;
    }

    public PrintVo convert2Print() {
        PrintVo vo = new PrintVo();
        vo.setSn(this.getSn());
        vo.setGoods_name(this.getGoods_name());
        vo.setSpec_name(this.getSpec_name());
        vo.setIn_qty(this.getIn_qty());
        vo.setPrice(this.getPrice());
        vo.setAmount(this.getAmount());
        vo.setUnit_name(this.getUnit_name());
        vo.setNote_info(this.getNote_info());
        vo.setPosition_in_qty(BigDecimal.ZERO);
        return vo;
    }

}
